@mixin text-line($value) {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: $value;
  /* autoprefixer: off */
  -webkit-box-orient: vertical;
  /* autoprefixer: on */
  word-break: break-all;
}
.common-single-info-card {
  position: relative;
  user-select: none;
  padding: 20px 20px 12px 20px;
  background-color: #FFF;
  border-radius: 8px;
  margin-bottom: 16px;
  cursor: pointer;
  .title-and-edit-box {
    display: flex;
    justify-content: space-between;
    .card-title {
      font-weight: 500;
      font-size: 16px;
      color: #1E2126;
      line-height: 24px;
      margin-bottom: 8px;
      @include text-line(1);
    }
    .edit {
      transition: all ease 0.2s;
      opacity: 0;
      flex-shrink: 0;
      &:hover {
        color: #4B8DFF;
      }
    }
  }
  .card-info, .card-status {
    font-size: 14px;
    color: #4E5B71;
    line-height: 20px;
    .single-info {
      @include text-line(1);
      margin-bottom: 4px;
      &:last-child {
        margin-bottom: 0;
      }
      .info-text {
        word-break: break-all;
      }
    }
  }
  .card-status {
    margin-top: 12px;
    .dot {
      transform: translateY(-1.5px);
      display: inline-block;
      width: 6px;
      height: 6px;
      border-radius: 50%;
      &.active {
        background-color: #32CD91;
      }
      &.deactivate {
        background-color: #FF6680;
      }
    }
    .dot-text {
      display: inline-block;
      margin-left: 8px;
    }
  }

  .bottom-detail {
    margin-top: 12px;
    box-shadow: inset 0 1px 0 0 #DBE6F3;
    padding: 12px 12px 0 12px;
    display: flex;

    .operate-btn {
      transition: all ease 0.2s;
      text-align: center;
      width: 100%;
      border-right: 1px solid #CDD7EC;
      &:hover {
        color: #4B8DFF;
      }
      &:last-child {
        border-right: none;
      }
    }
  }

  &.active {
    transition: all ease 0.2s;
    border: 1px solid #1F70FC;
    &::before {
      width: 20px;
    }
    &::after {
      width: 20px;
    }
    &:hover {
      transition: all ease 0.2s;
      box-shadow: 0 4px 12px 0 rgba(75,141,255,0.50);
    }
  }
  &.deactivate {
    transition: all ease 0.2s;
    border: 1px solid #FFF;
    &:hover {
      transition: all ease 0.2s;
      box-shadow: 0 4px 12px 0 rgba(0,0,0,0.10);
    }
  }
  &::before {
    transition: width ease 0.2s;
    content: "";
    position: absolute;
    width: 0;
    height: 1px;
    background-color: #1F70FC;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
  }
  &::after {
    transition: width ease 0.2s;
    content: "";
    position: absolute;
    width: 0;
    height: 1px;
    background-color: #1F70FC;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
  }
  &:hover {
    .title-and-edit-box .edit {
      opacity: 1;
    }
  }
  &.only-left {
    &::after {
      display: none;
    }
  }
}
